<script setup lang="ts">
  import CustomPayment from '@/components/custom-payment/custom-payment.vue'
  import { ref } from 'vue'

  const paymentRef = ref()
  const clickFn = () => {
    paymentRef.value.open()
  }
</script>

<template>
  <view class="top">
    <button class="uni-button" @click="clickFn">打开弹窗</button>

    <custom-payment order-id="212121" :amount="89" ref="paymentRef"></custom-payment>
  </view>
</template>

<style lang="scss" scoped>
  .inner {
    box-sizing: border-box;
    width: 750rpx;
    height: 400rpx;
    background-color: #fff;
    border-top-left-radius: 20rpx;
    border-top-right-radius: 20rpx;
    padding: 40rpx;
  }
</style>
